<!DOCTYPE html>
<html style="overflow: scroll">
<head>
    <title></title>
		<#include "/header.html"/>
    <link rel="stylesheet" href="${request.contextPath}/statics/plugins/datepicker/datepicker3.css" />
    <script src="${request.contextPath}/statics/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="${request.contextPath}/statics/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group">
            <div class="col-sm-10" style="width: 20%;">
                <input type="text" class="form-control" v-model="q.businessName" @keyup.enter="query" placeholder="业务名称">
            </div>
            <div class="col-sm-10" style="width: 20%;">
                <input type="text" class="form-control" v-model="q.userName" @keyup.enter="query" placeholder="用户姓名">
            </div>
            <div class="col-sm-10" style="width: 20%;">
                <input type="text" class="form-control" v-model="q.mobile" @keyup.enter="query" placeholder="联系方式">
            </div>
            <div class="form-inline" style="">
                创建日期：
                <div class="input-daterange input-group" id="datepicker_range" >
                    <input id="datepicker_start" type="text" class="form-control" style="width: 100px;" name="start" readonly/>
                    <span class="input-group-addon">至</span>
                    <input id="datepicker_end" type="text" class="form-control" style="width: 100px;" name="end" readonly/>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-10" style="width: 20%;">
                <select class="form-control" placeholder="请选择" v-model="q.status">
                    <option disabled value="">请选择办理状态</option>
                    <option v-for="status in statusObject.policePostStatus" :value="status.value">{{status.text}}</option>
                </select>
            </div>

        <div class="grid-btn">
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-warning" @click="reset">重置</a>
            <#if shiro.hasPermission("cgs:cgspolicepost:save")>
            <a class="btn btn-primary" @click="detail">详情</a>
			</#if>
			<#if shiro.hasPermission("cgs:cgspolicepost:update")>
            <a class="btn btn-primary" @click="policePostUpdate">办理</a>
			</#if>
			<#if shiro.hasPermission("cgs:cgspolicepost:delete")>
            <a class="btn btn-primary" @click="refundCheck">退款审核</a>
			</#if>
        </div>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>


    <!--详情-->
    <div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="detailModalLabel">
                        {{title}}
                    </h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" >
                        <div class="form-group">
                            <div class="col-sm-2 control-label">业务名称</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.businessName" placeholder="业务名称"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">用户姓名</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.userName" placeholder="用户姓名"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">联系方式</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.mobile" placeholder="联系方式"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">创建时间</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.createTime" placeholder="创建时间"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">邮寄地址</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.address" placeholder="地址"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">身份证号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.idCardNum" placeholder="身份证号"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">车辆类型</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.vehicleType" placeholder="车辆类型"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">车牌号码</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.vehicleNum" placeholder="车牌号码"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">工本费</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.nominalFee" placeholder="工本费"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">总费用</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.totalPrice" placeholder="总费用"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">订单号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.orderNum" placeholder="地址"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">支付方式</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.payType" placeholder="支付方式"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">订单状态</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.status" placeholder="订单状态"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">快递单号</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.expressNo" placeholder="快递单号"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label">办理时间</div>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" v-model="cgsPolicePost.handleTime" placeholder="办理时间"/>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal">关闭</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>

    <!--照片-->
    <div class="modal fade" id="showPhotoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="showPhotoModalLabel">
                    {{title}}
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" >
                    <div class="form-group">
                        <div class="col-sm-2 control-label" style="width: 20%">身份证正面</div>
                        <div class="col-sm-10" style="width: 70% ;">
                            <img class="form-control" id="idCard_01" style="height: 200px"/>
                        </div>
                        <div class="col-sm-2 control-label" style="width: 20%">银行卡扫描件</div>
                        <div class="col-sm-10" style="width: 70%">
                            <img class="form-control" id="idCard_02" style="height: 200px"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


    <!--办理-->
    <div class="modal fade" id="policePostModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="policePostModalLabel">
                    {{title}}
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" >
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >业务名称</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.businessName" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >用户姓名</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.userName" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >联系方式</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.userName" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >邮寄地址</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.userName" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >身份证号</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.idCardNum" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >车辆类型</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.vehicleType" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >车牌号码</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.vehicleNum" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >创建时间</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.createTime" placeholder="商品名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label" >快递单号</div>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control" v-model="cgsPolicePost.expressNo" placeholder="商品名"/>
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <input type="button" class="btn btn-primary" value="保存"/>
                <button type="button" class="btn btn-warning" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


</div>

<script src="${request.contextPath}/statics/js/modules/cgs/cgspolicepost.js?_${.now?long}"></script>
</body>
</html>